// 全局样式变量
@primary-color: #6697f5;
@primary-color-light: #E6F7FF;
@background-color: #f5f5f5;
@white: #ffffff;
@black: #000000;
@text-color: #333333;
@text-color-light: #666666;
@border-color: #e0e0e0;
@border-radius: 8px;
@shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

// 基础重置样式
page {
  background-color: @background-color;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

// 通用卡片样式
.card {
  background: @white;
  border-radius: @border-radius;
  box-shadow: @shadow;
  margin: 10px;
  padding: 15px;
}

// 按钮样式
.btn-primary {
  background-color: @primary-color;
  color: @white;
  border: none;
  border-radius: @border-radius;
  padding: 12px 24px;
  font-size: 16px;
  
  &:hover {
    background-color: darken(@primary-color, 10%);
  }
}

.btn-ghost {
  background-color: transparent;
  color: @primary-color;
  border: 1px solid @primary-color;
  border-radius: @border-radius;
  padding: 12px 24px;
  font-size: 16px;
  
  &:hover {
    background-color: @primary-color-light;
  }
}

// 输入框样式
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid @border-color;
  border-radius: @border-radius;
  font-size: 16px;
  background-color: @white;
  
  &:focus {
    border-color: @primary-color;
    outline: none;
  }
}

// 标签样式
.tag {
  display: inline-block;
  padding: 4px 8px;
  background-color: @primary-color-light;
  color: @primary-color;
  border-radius: 4px;
  font-size: 12px;
  margin: 2px;
}

// 分割线
.divider {
  height: 1px;
  background-color: @border-color;
  margin: 15px 0;
}

// Flex布局工具类
.flex {
  display: flex;
  
  &-column {
    flex-direction: column;
  }
  
  &-center {
    align-items: center;
    justify-content: center;
  }
  
  &-between {
    justify-content: space-between;
  }
  
  &-around {
    justify-content: space-around;
  }
  
  &-wrap {
    flex-wrap: wrap;
  }
}
